package com.lxq.scmserver;

import lombok.extern.slf4j.Slf4j;
import org.springframework.ai.chat.memory.ChatMemory;
import org.springframework.ai.chat.memory.InMemoryChatMemory;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;

@SpringBootApplication
@Slf4j
public class FlightBookingApplication implements CommandLineRunner {
	@Override
	public void run(String... args) throws Exception {
		log.info("Flight Booking Application is running...{}",System.getenv("AI_KEY_ALI"));
	}
	@Bean
	ChatMemory chatMemory(){
		return new InMemoryChatMemory();
	}

	public static void main(String[] args) {
		SpringApplication.run(FlightBookingApplication.class, args);
	}

}
